﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Query.aspx.cs" Inherits="JCNT.NoteWeb.Web.Query" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>查询</title>
    <link href="../css/home.css" rel="stylesheet" type="text/css" media="screen" />

    <script type="text/javascript" src="../css/nav.js"></script>

    <script type="text/javascript">
        function btn_parent_ref() {
            var strSQL = document.getElementById("tboxSQL").value;
            parent.ref_Grid(strSQL);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="div_center">
        <asp:Panel ID="Panel1" runat="server">
            <table class="sty_tab">
                <tr>
                    <td width="20%">
                        分类：<asp:Label ID="lab_lab" runat="server"></asp:Label>
                    </td>
                    <td width="20%">
                        作者：<asp:Label ID="lab_oth" runat="server"></asp:Label>
                    </td>
                    <td width="35%">
                        <asp:Label ID="Label3" runat="server" Text="创建日期："></asp:Label>
                        <asp:Label ID="lab_dat" runat="server"></asp:Label>
                    </td>
                    <td width="25%" align="center">
                        <asp:LinkButton ID="btn_Query" runat="server" OnClick="btn_Query_Click">查询</asp:LinkButton>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:LinkButton ID="btn_Return" runat="server" OnClick="btn_Return_Click">返回</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server">
            <asp:TextBox ID="tboxSQL" runat="server" Width="700px" Height="80px" 
                TextMode="MultiLine">SELECT ID, Lab, Tit FROM wp_Note WHERE Tit LIKE &#39;%g%&#39; ORDER BY Lab ASC</asp:TextBox>
            <input id="btn_ref" onclick="btn_parent_ref();" type="button" value="查询" />
        </asp:Panel>

    </div>
    <div>
    </div>
    </form>
</body>
</html>
